﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DBHelper;

namespace BusinessLayer.RegInfo
{
    public class CommonBL
    {
        public DateTime GetDateTimeNow()
        {
            var adapter = new BaseDAO(DbConfig.DbFindArtInfoConnectionString);
            DataSet ds = adapter.ExecuteDataSet("select getdate()", CommandType.Text, CustomConnectionState.CloseOnExit);
            return Convert.ToDateTime(ds.Tables[0].Rows[0][0]);
        }
    }
}
